<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script src="./jQuery.0.0.3.js"></script>
<script>
    console.log($.extend)
    var wait = function(params) {
        var der = $.deferred()
        setTimeout(function(params) {
            console.log('园梦开车了！')
            der.reject('111')
        })
        return der
    }

    $.when(wait()).done(function(params) {
        console.log(params)
        console.log('成功！')
    }).fail(function(params) {
        console.log(params)
        console.log('失败！')
    })
</script>

</html>